Configs for Code Scrawl
To know:
- Configs go in
PROJECT_ROOT/.scrawl.json
orPROJECT_ROOT/.config/scrawl.json
- In cli
scrawl --boolAttribute
orscrawl -strAttribute strValue
to override yourjson
configurations.-
--boolAttribute
presence means "setboolAttribute
to true"
-
- Your
.json
file is loaded byTlf\Cli
(when you use thescrawl
command). If you instantiateTlf\Scrawl($projectDir, $configs)
in PHP, you'd have to load up configs yourself. -
--deleteExistingDocs
is a DANGEROUS feature. Iftrue
in your.json
or provided in yourscrawl
call, your entiredocs
folder will be deleted when runningscrawl
. - Configs in the PHP array provided to
Tlf\Scrawl
do NOT use-
or--
. This is purely for predictable cli input parsing. -
--markdown.preserveNewLines
Adds 2 spaces at the end of every line to ensure Markdown parsers separate those lines in output.- Defaults
true
... thus MUST be disabled through.json
- Defaults
- There's also a
-scrawl.ext
config option to load additional extensions. See the config file for this package for an example.- @TODO properly document
-scrawl.ext
config.
- @TODO properly document
Available configs & their default values:
All default values are determined/picked in the Tlf\Cli
class
- dir.docs:
docs
ordoc
ordoc
- dir.template:
docs-src
ordoc-src
ordocs-src
- dir.code:
src
orcode
orsrc
- file.conf:
.config/scrawl.json
or.scrawl.json
or.config/scrawl.json
- file.code.ext:
*
- file.template.ext:
.src.md
- deleteExistingDocs:
false
- markdown.preserveNewLines:
true
- markdown.prependGenNotice:
true
- scrawl.ext:
[]
- readme.copyFromDocs:
true